import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import SayHello from '@/components/SayHello'
import SayHello2 from '@/components/SayHello2'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/hello',
      name: 'SayHello',
      component: SayHello
    },
    {
      path: '/hello/:msg',
      name: 'SayHello2',
      component: SayHello2
    }
  ]
})
